package com.oncliedisk.administrator.model;

import com.vdisk.net.VDiskAPI;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2015/12/13.
 */
public class EntryModel implements Serializable{

    public int id;
    //字节数
    public long bytes;
    //哈希值
    public String hash;
    //icon图标
    public String icon;
    //是否是文件夹
    public boolean isDir;
    public String modified;
    public String clientMtime;
    //当前路径
    public String path;
    //本文件的目录
    public String root;
    //文件大小
    public String size;
    //文件类型
    public String mimeType;
    //文件MD5值
    public String md5;
    public String sha1;
    public String revision;
    public String thumb;
    public String rev;
    public boolean thumbExists;
    private boolean isCheck; //是否被选中
    private boolean isLoading; //待选择状态
    private boolean isSingle; //正常状态
    //是否被删除
    public boolean isDeleted;
    public List<VDiskAPI.Entry> contents;

    public boolean isFirst; //是否是目录

    public String parent_url; //上一级的路径

    public String fileName; //文件名

    public String downPath; //下载地址

    private String localpath; //图片本地缩略图

    private boolean isDowning; //正在下载中

    public boolean isDowning() {
        return isDowning;
    }

    public void setIsDowning(boolean isDowning) {
        this.isDowning = isDowning;
    }

    public boolean isFirst() {
        return isFirst;
    }

    public void setIsFirst(boolean isFirst) {
        this.isFirst = isFirst;
    }

    public String getParent_url() {
        return parent_url;
    }

    public boolean isCheck() {
        return isCheck;
    }

    public String getDownPath() {
        return downPath;
    }

    public void setDownPath(String downPath) {
        this.downPath = downPath;
    }

    public void setIsCheck(boolean isCheck) {
        this.isCheck = isCheck;
    }

    public boolean isSingle() {
        return isSingle;
    }

    public void setIsSingle(boolean isSingle) {
        this.isSingle = isSingle;
    }

    public boolean isLoading() {
        return isLoading;
    }

    public void setIsLoading(boolean isLoading) {
        this.isLoading = isLoading;
    }

    public void setParent_url(String parent_url) {
        this.parent_url = parent_url;
    }

    public String getLocalpath() {
        return localpath;
    }

    public void setLocalpath(String localpath) {
        this.localpath = localpath;
    }

    public int getId() {
        return id;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public void setId(int id) {
        this.id = id;
    }

    public long getBytes() {
        return bytes;
    }

    public void setBytes(long bytes) {
        this.bytes = bytes;
    }

    public String getHash() {
        return hash;
    }

    public void setHash(String hash) {
        this.hash = hash;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getModified() {
        return modified.replace("+0000", "");
    }

    public void setModified(String modified) {
        this.modified = modified;
    }

    public boolean isDir() {
        return isDir;
    }

    public void setIsDir(boolean isDir) {
        this.isDir = isDir;
    }

    public String getClientMtime() {
        return clientMtime;
    }

    public void setClientMtime(String clientMtime) {
        this.clientMtime = clientMtime;
    }

    public String getRoot() {
        return root;
    }

    public void setRoot(String root) {
        this.root = root;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getMimeType() {
        return mimeType;
    }

    public void setMimeType(String mimeType) {
        this.mimeType = mimeType;
    }

    public String getMd5() {
        return md5;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }

    public String getSha1() {
        return sha1;
    }

    public void setSha1(String sha1) {
        this.sha1 = sha1;
    }

    public String getRevision() {
        return revision;
    }

    public void setRevision(String revision) {
        this.revision = revision;
    }

    public String getThumb() {
        return thumb;
    }

    public void setThumb(String thumb) {
        this.thumb = thumb;
    }

    public String getRev() {
        return rev;
    }

    public void setRev(String rev) {
        this.rev = rev;
    }

    public boolean isDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(boolean isDeleted) {
        this.isDeleted = isDeleted;
    }

    public List<VDiskAPI.Entry> getContents() {
        return contents;
    }

    public void setContents(List<VDiskAPI.Entry> contents) {
        this.contents = contents;
    }

    public boolean isThumbExists() {
        return thumbExists;
    }

    public void setThumbExists(boolean thumbExists) {
        this.thumbExists = thumbExists;
    }
}
